package com.zzj.security.jwt.service.impl;

import com.zzj.security.jwt.entity.SysRole;
import com.zzj.security.jwt.repository.SysRoleRespository;
import com.zzj.security.jwt.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName SysRoleServiceImpl
 * @Description TODO
 * @Author zhijun zeng at 20:39 2020/5/17
 * @Version 1.0
 **/
@Service("sysRoleService")
@Transactional
public class SysRoleServiceImpl implements SysRoleService {

    @Autowired
    private SysRoleRespository sysRoleRespository;

    @Override
    public List<SysRole> findRolesByUserId(Long userid) {
        return null;
    }

    @Override
    public List<SysRole> findAll() {
        return sysRoleRespository.findAll();
    }

    @Override
    public SysRole findById(Long roleId) {
        return sysRoleRespository.findOne(roleId);
    }
}
